package com.xlh.constant;

import com.google.common.collect.Lists;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author cfz
 */
public class ConcludeContant {


    // 默认分数设置
    public static final Integer DEFAULT_SCORE = 100;
    // 保留小数位数
    public static final Integer RETAIN_DECIMALS = 2;
    // 基础列
    public static final Integer BASE_ROW = 3;
    // 工程认证缓存key
    public static final String PROPERTY_SCORE = "score";

    /**
     * 导入学生信息excel头
     */
    public static final Map<String, String> CONCLUDE_STUDENT_HEADER = new LinkedHashMap<String, String>() {
        {
            put("姓名", "name");
            put("学号", "sno");
            put("班级", "className");
        }
    };

    /**
     * 注意事项
     */
    public static final String ANNOUNCEMENTS = "注意事项：\n"+
            "1、 考核分项满分系统默认为100分， 教师可编辑修改满分值。\n"+
            "2、 考核分项成绩≤满分值";

    /**
     * 默认满分值
     */
    public static final String DEFAULT_FULL_SCORE = "100";

    /**
     *  考核分项最大满分值
     */
    public static final Integer MAX_FULL_SCORE = 200;

    /**
     * excel 满分提示
     */
    public static final String FULL_SCORE_TIP = "满分：";

    /**
     * 学号的正则表达式
     */
    public static final String STUNO_REGEX = "^[a-z0-9A-Z]+$";

    /**
     * 满分项校验
     */
    public static final String FULL_MARK_REGEX = "^[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*$";

    /**
     * 导入学生成绩 基础列
     */
    public static final List<String> SCORE_BASE_COLUM = Lists.newArrayList("序号", "学生姓名", "学生学号");

    /**
     * 表格整体下载静态参数
     */
    public final static String HEAR_ZERO = "合计分数";
    public final static String HEAR_OTHER = "课程目标";
    public final static String SECOND_HEAR_ZERO_ROW1 = "期望/满分";
    public final static String SECOND_HEAR_ZERO_ROW2 = "成绩";
    public final static String SECOND_HEAR_ROW1 = "满分";
    public final static String SECOND_HEAR_ROW2 = "成绩";

    /**
     * 导入表格提示信息
     */

    /**
     * 失败标识
     */
    public final static String ERROR_FLAGE = "ERROR";
    /**
     * 成功标识
     */
    public final static String SUCCESS_FLAGE = "SUCCESS";

}
